//
//  MyTeamSonCell.m
//  digitalCurrency
//
//  Created by 小震GG on 2019/11/20.
//  Copyright © 2019 XinHuoKeJi. All rights reserved.
//

#import "MyTeamSonCell.h"

@implementation MyTeamSonCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.backgroundColor = [UIColor clearColor];
        self.selectionStyle = NO;
        
        [self setView];
    }
    
    return self;
}

- (void)setView{
    
    UIView *bgView = [[UIView alloc]init];
    [self addSubview:bgView];
    [bgView mas_makeConstraints:^(MASConstraintMaker *make) {
           make.left.equalTo(16);
           make.top.equalTo(0);
           make.right.equalTo(-16);
           make.height.equalTo(49);
       }];
    bgView.backgroundColor = [UIColor whiteColor];
    bgView.layer.cornerRadius = 5.0;
    bgView.layer.masksToBounds = YES;
    
    self.LB1 = [[UILabel alloc]init];
    [bgView addSubview:self.LB1];
    [self.LB1 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(16);
        make.centerY.equalTo(0);
    }];
    self.LB1.font = kFont(16);
    self.LB1.textColor = tThreeColor;
    
    self.LB2 = [[UILabel alloc]init];
    [bgView addSubview:self.LB2];
    [self.LB2 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(0);
    }];
    self.LB2.font = kFont(16);
    self.LB2.textColor = tThreeColor;
    
    self.LB3 = [[UILabel alloc]init];
    [bgView addSubview:self.LB3];
    [self.LB3 mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(-16);
        make.centerY.equalTo(0);
    }];
    self.LB3.font = kFont(16);
    self.LB3.textColor = tThreeColor;
    
}

- (void)upDataModel:(NSDictionary *)model indexInt:(NSInteger)indexInt
{
    self.LB1.text = [NSString stringWithFormat:@"%@12",model[@""]];
    self.LB2.text = [NSString stringWithFormat:@"%@23",model[@""]];
    self.LB3.text = [NSString stringWithFormat:@"%@34",model[@""]];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
